<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
   /* *{
      margin: 0;
    } 去掉所有元素的自带间距*/
    body>div{
      width: 198px;
      height: 280px;
      font-size: 12px;
      font-weight: lighter;
      color: #000;
      background-color: #f5f5f5;
      margin: 0px;
      padding: 0px;
      font-weight: bold;
      text-align: center;
    }
    .price_p{
      font-size: 12px;
      color: #0aa1ed;
      font-weight: bold;
      margin-bottom: 12px;
    }
    a{
      /*行内元素和行内块元素如果上级元素设置了text-align:center 则元素会居中*/
      /*块级元素不受text-align：center的影响，元素不会居中，需要设置margin:0 auto;*/
      /*块级元素在一行居中*/
      margin: 0 auto;
      width: 100px;
      height: 24px;
      color: white;
      display: block;/*修改为块级元素*/
      background-color: #0aa1ed;
      line-height: 24px;
      text-decoration: none;
      border-radius: 3px;
      font-size: 12px;
    }
  </style>
</head>
<body>
<div>
  <img src="http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img3.png" alt="">
  <p class="title_p">戴尔(DELL)XPS13-9360-R1609 13.3英<br>
    寸微边框笔记本电脑</p>
  <p class="price_p">￥4600.00</p>
  <a href="">查看详情</a>
</div>
</body>
</html>